# To change this template, choose Tools | Templates
# and open the template in the editor.

__author__="martin"
__date__ ="$26.03.2011 18:10:18$"

from pysimplesoap.client import SoapClient, SoapFault

# create a simple consumer
client = SoapClient(
    location = "http://localhost:8008/",
    action = 'http://localhost:8008/', # SOAPAction
    namespace = "http://example.com/sample.wsdl",
    soap_ns='soap',
    trace = True,
    ns = False)

# call the remote method
response = client.AddressToImage(state="", zipcode=1100,city="vienna",street="Favoritenstrasse 226")

# extract and convert the returned value
result = response.UrlResult
print str(result)